﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApi.Core.Model
{
    public class JwtSettings
    {
        /// <summary>
        /// 密钥
        /// </summary>
        public string SecretKey { get; set; }

        /// <summary>
        /// Token颁发者
        /// </summary>
        public string Issuer { get; set; }

        /// <summary>
        /// Token接收者（通常与应用域名一致）
        /// </summary>
        public string Audience { get; set; }

        /// <summary>
        /// Token有效期（分钟）
        /// </summary>
        public int AccessTokenExpiry { get; set; }


        public int RefreshTokenExpiry { get; set; }
    }

}
